﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NetworkTest
{
    //Ping结果类2
    public class PingResult2
    {
        //ip
        public string IP { get; set; }
        //状态
        public bool State { get; set; }
        //时延
        public int TimeDelay { get; set; }

        //构造方法
        public PingResult2()
        {
        }

        //构造方法
        public PingResult2(string ip, bool state, int timeDelay)
        {
            IP = ip;
            State = state;
            TimeDelay = timeDelay;
        }

        //ToString方法
        public override string ToString()
        {
            return $"{IP}={State}={TimeDelay}";
        }
    }
}
